package com.ng.finance.api.service;

import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.IService;
import com.ng.finance.api.entity.UserPay;
import com.ng.finance.api.vo.UserPayVo;
import com.ng.finance.common.pojo.Result;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author 83673
 * @since 2018-09-14
 */
public interface UserPayService extends IService<UserPay> {

    Result recordPay(UserPayVo userPay);

    Double selectYesterdayPay();

    Double getTotalPay();

    Result alreadyRead(Integer lookState, Long id);

    Result selectPersonPayList(String payTime, Page page);

    Map<String, Object> selectMonthPayList(String payTime, Page page);

    Result deleteMyPay(String id);

    Result selectPersonPay();

    Double getMonthTotalPay(String payTime);

    Double getTodayTotalPay();

    Result updatePay(UserPayVo userPay);


    Result selectNoReadList(String username, Integer payType, Integer lookState, String payTime, Page page);


    Result moreReadByUserId(List<String> ids);


    Result moreUnreimbursed(List<String> ids, List<String> moneys, String time, Long userId, String saveids);


}
